package com.cian.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 商品详细信息表
 * </p>
 *
 * @author Cian
 * @since 2021-03-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="CommodityInform对象", description="商品详细信息表")
public class CommodityInform implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商品的id")
    @TableId(value = "co_id", type = IdType.AUTO)
    private Integer coId;

    @ApiModelProperty(value = "商品的名称")
    private String coName;

    @ApiModelProperty(value = "商品的图片存放位置")
    private String coPath;

    @TableField(value = "co_filename")
    @ApiModelProperty(value = "商品的图片文件名")
    private String coFileName;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @ApiModelProperty(value = "商品的图片创建时间")
    private Date createTime;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "商品的图片更新时间")
    private Date updateTime;


}
